package com.huanzhidadi.springsecurity.config;


import com.huanzhidadi.springsecurity.model.LoginUser;

public class UserContextHolder {

	public static ThreadLocal<LoginUser> context = new ThreadLocal<LoginUser>();
	public static LoginUser currentLoginUser() {
		return context.get();
	}

	public static void set(LoginUser loginUser) {
		context.set(loginUser);
	}

	public static void shutdown() {
		context.remove();
	}
}
